计算机与现代化 ›› 2013, Vol. 1 ›› Issue (2): 197-200.doi: 10.3969/j.issn.1006-2475.2013.02.049

• 网络与通信 • 上一篇    下一篇

LBS应用中地理定位机制研究

王海波,王兆华   

  1. 中国传媒大学计算机与网络中心,北京100024
  • 收稿日期:2012-10-11 修回日期:1900-01-01 出版日期:2013-02-27 发布日期:2013-02-27

Research on Geolocation Mechanism in LBS Application

WANG Hai-bo, WANG Zhao-hua   

  1. Computer and Network Center, Communication University of China, Beijing 100024, China
  • Received:2012-10-11 Revised:1900-01-01 Online:2013-02-27 Published:2013-02-27

摘要: 地理定位功能是基于位置的服务类型的应用中必不可少的功能。随着HTML5规范的制定,浏览器在自身内部内置了对地理定位功能的支持。本文研究主流浏览器实现地理定位功能的机制,即通过向第三方地理定位服务器发出请求从而获得客户端所处位置的地理信息;然后指出目前浏览器地理定位机制中用户不能自主选择地理定位服务器的缺陷,提出通过JavaScript实现支持用户自由选择地理定位服务器的方法。用户使用这一方法,可以依据地理定位的准确度来选择地理定位服务器,提高了地理定位的实用性。

关键词: 基于位置的服务, 地理定位, 经纬度, 代理服务器, 浏览器

Abstract: Geolocation function is an indispensable function in location based service. With the establishment of HTML5 specification, the main browsers support geolocation functions natively. This paper researches on the geolocation mechanism adopted on the main browsers, analyzes the query request and query response in detail. Then it pointes out the shortcoming of the current geolocation mechanism, which doesn’t allow users to choose the third-party geolocation server. This paper puts forward a method to give the users choice to select geolocation server according to the accuracy.

Key words: LBS, geolocation, latitude and longitude, proxy, browser